<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>tabs 面板</title>
    <link rel="stylesheet" href="app.css" />
  </head>
  <body>
    <div class="tabs">
      <section>
        <div class="header">
          <div data-action="toggle" data-name="video">在线电影</div>
          <div data-action="toggle" data-name="game">
            小游戏
            <span data-action="closeCurrent" data-name="game">x</span>
          </div>
        </div>

        <span data-action="close">x</span>
      </section>
      <div class="body">
        <div id="video">电影。。。。。</div>
        <div id="game">游戏。。。。。</div>
      </div>
    </div>

    <script type="module">
      import App from "./app.js";
      new App({ el: ".tabs", type: "click" });
    </script>
  </body>
</html>
